<template>
  <div>
    <div class="box">
      <div class="item" v-for="item in navList">
        <router-link :to="item.path">{{ item.text }}</router-link>
      </div>
    </div>
    <router-view></router-view>
  </div>
</template>

<script>

  import { navList } from '../util/navConfig.js';

  export default {
    name: 'Index',
    data () {
      return {
        message: "父组件传给子组件的数据",
        inputValue: "",
        navList
      }
    },
    methods: {
      // handelInput (value) {
      //   this.inputValue = value;
      // }
    }
  }
</script>

<style scoped>
  .box {
    display: flex;
    justify-content: space-around;
  }
  .item {
    width: 200px;
  }
</style>
